package com.syh.logservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.syh.bscommon.pojo.Log;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author syh
 * @since 2024-07-06
 */
@Mapper
public interface LogMapper extends BaseMapper<Log> {
    @Select("select * from log where user_id = #{userId} order by date desc limit 5")
    List<Log> getSome(int userId);
}
